<title>Feedbacks</title>
<h1>Feedbacks</h1>
<div id="view-content">
    <div class="row-fluid">
        <div>
            <table class="table table-condensed well">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Details</th>
                        <th>Message</th>
                        <th>Date</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $index = 1;
                    foreach ($this->fetchAll as $feedback) :
                        ?>
                        <tr>
                            <td class="span2"><h1><?= $index ?></h1></td>
                            <td class="span5">
                                <b>Name: </b> <?= $feedback['name'] ?><br>
                                <b>Email: </b> <?= $feedback['email'] ?><br>
                                <b>Mobile: </b> <?= $feedback['mobile'] ?>
                            </td>
                            <td>
                                <b>Subject: </b><?= $feedback['subject'] ?><br>
                                <b>Message: </b> <?= $feedback['message'] ?>
                            </td>
                            <td>
                                <?= $feedback['date_string'] ?>
                            </td>
                        </tr>  
                        <?php
                        $index++;
                    endforeach;
                    ?>                    
                </tbody>
            </table>
        </div>
    </div>
</div>

